In the previous lesson you
understood UI Explorer. What's now take the learning of selectors
further and understand anchors. So let's get started, anchors
are used when a reliable selector for a UI element is not available. If a selector keeps changing
after every iteration, the user defines an anchor that can locate
the selector every time it changes. Anchor based activity and studio
searches for the target UI element by using UI elements linked to
the target UI element as anchors. So, the activity locates the anchor and
its relative UI element on the screen. As an example,
open the website rpachallenge.com. You will see several fields listed on
the web page like email, phone number and others. Notice the position of these
fields on the web page. Now refresh this web page. [MUSIC] Notice that the fields have
changed their positions. [MUSIC] If we use selectors here. [MUSIC] Then the selectors will select
the wrong field after every refresh. As in this case, the fields are not
reliable and change position. Here, anchors come into action, anchors will define a reference
element for every field. Here the reference element can be the
labels which are email, phone number and others. [MUSIC] In the following video demonstration,
we will watch anchors and action by using the same web page. Till then keep learning and practicing. Thank you for watching.